import {
	defineStore
} from 'pinia'

const useStore = defineStore('store', {
	state: () => ({
		isHeader: false, //是否展示顶部
		userData: {
			token: ''
		}
	}),
	actions: {},
	persist: {
		enabled: true,
		strategies: [{
			key: 'save_store',
			storage: sessionStorage,
			paths: ['isHeader']
		}]
	}
})

export default useStore